import { Component, Input, Inject, ViewChild } from '@angular/core';
import { PREVIEWPOS, DIMENSION, Dimension, Coord } from '../models/dimension';
import { TetriminoCmp } from './tetrimino.cmp';
import { Shape } from '../models/shape';


@Component({
  moduleId: module.id,
  selector: 'th-tetris-queue',
  templateUrl: 'queue.cmp.html',
  styleUrls: ['queue.cmp.css'],
  directives: [TetriminoCmp],
  providers: [{ provide: DIMENSION, useValue: [4, 12] }]
})
export class QueueCmp {

  @Input() shapes: Shape[];
  getX(shape: Shape) {
    return 'OI'.indexOf(shape) >= 0 ? 2 : 1.5;
  }
}